package com.xtkj.finance.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xtkj.finance.dao.SysMenuMapper;
import com.xtkj.finance.service.IMenuService;
import com.xtkj.finance.vo.SysMenu;
import com.xtkj.finance.vo.SysUser;
@Service("menuService")
public class MenuServiceImpl implements IMenuService{
	
	@Autowired
	private SysMenuMapper menuMapper;

	public List<SysMenu> findMenuByUserId(SysUser user) {
		
		return menuMapper.findMenuByUserId(user);
	}
	
	public List<SysMenu> findMenues() {
		return menuMapper.findAllMenues();
	}

	public List<SysMenu> findMenuByRoleId(int roleId) {
		return menuMapper.findMenuByRoleId(roleId);
	}

}
